package com.example.demo.controller;

import com.example.demo.auth.Auth;
import org.springframework.web.bind.annotation.*;

import java.util.Collections;
import java.util.List;

@RestController
@RequestMapping("/order")
public class OrderController {
    @PostMapping
    @Auth(resourceCode = "addOrder")
    public void add(){

    }

    @GetMapping("/all")
    @Auth(resourceCode = "getOrderLst")
    public List<String> getLst(){
        return Collections.emptyList();
    }

    @DeleteMapping("/{id}")
    public void remove(@PathVariable String id){

    }

    @PutMapping("")
    @Auth(resourceCode = "updateOrder")
    public void update(){

    }
}
